package paas.storage.dto;


/**
 * 数据插入对象
 *[{row_key,columnfamily:column,value},{}]。
 * @author xufeng
 * @email 525207937@qq.com
 * @date 2021/1/25 14:42
 */
public class InsertModel {
    /**
     * rowKey
     */
    private String row_key;
    /**
     * 列簇名称
     */
    private String columnfamily;
    /**
     * 需要更新的值
     */
    private String value;

    private String column;
    /**
     * 版本号
     */
    private Long version;


    public InsertModel() {
    }


    public InsertModel(String row_key, String columnfamily, String value, String column, Long version) {
        this.row_key = row_key;
        this.columnfamily = columnfamily;
        this.value = value;
        this.column = column;
        this.version = version;
    }

    public String getRow_key() {
        return row_key;
    }

    public void setRow_key(String row_key) {
        this.row_key = row_key;
    }

    public String getColumnfamily() {
        return columnfamily;
    }

    public void setColumnfamily(String columnfamily) {
        this.columnfamily = columnfamily;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getColumn() {
        return column;
    }

    public void setColumn(String column) {
        this.column = column;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "InsertModel{" +
                "row_key='" + row_key + '\'' +
                ", columnfamily='" + columnfamily + '\'' +
                ", value='" + value + '\'' +
                ", column='" + column + '\'' +
                ", version=" + version +
                '}';
    }
}
